﻿using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations.Schema;

namespace TimeProject.Engine.DbModels
{
    [Table("OrganizationUser")]
    public partial class OrganizationUser : EntityBase
    {
        /// <summary>
        /// The user.
        /// </summary>
        [ForeignKey("User")]
        [Index(IsUnique = false)]
        public int UserId { get; set; }
        public virtual User User { get; set; }

        /// <summary>
        /// The organization.
        /// </summary>
        [Index(IsUnique = false)]
        public int OrganizationId { get; set; }
        public virtual Organization Organization { get; set; }

        /// <summary>
        /// Role.
        /// </summary>
        public OrganizationUserRole Role { get; set; }

        /// <summary>
        /// Status.
        /// </summary>
        public OrganizationUserStatus Status { get; set; }
    }
}
